// shift + enter 不插入段落而是简单的换行.

export const onKeyDown = (event, data, state) => {
  if (!event.shiftKey || event.which !== 13)return;

  return state
    .transform()
    .insertText('\n')
    .apply()
};